package game;

import game.GameDice.DiceColour;
import game.GameDice.DiceType;

public class BoardState {
	
	private GameDice[][] board;
	private int width;
	private int height;
	
	public BoardState() {
		this.setWidth(9);
		this.setHeight(8);
		this.board  = new GameDice[8][9];
		for (int i=0; i<8; i++) {
			for (int j=0; j<9; j++) {
				board[i][j] = new GameDice(DiceColour.NULL, DiceType.NULL, null);
			}
		}
	}
	
	public void setPiece(int width, int height, GameDice gd) {
		board[height][width] = gd;
	}
	
	public GameDice getPiece(int width, int height) {
		return board[height][width];
	}
	
	public void setWidth(int width) {
		this.width = width;
	}

	public int getWidth() {
		return width;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getHeight() {
		return height;
	}
	
	public GameDice[][] getBoard() {
		return board;
	}

	public void setBoard(GameDice[][] board) {
		this.board = board;
	}
	
}
